package org.jeecg.common.util.p000a.p001a;

import com.alibaba.fastjson.JSONObject;

import lombok.Data;

import java.util.HashMap;
import java.util.Map;
import org.jeecg.common.util.p000a.CommonProperty;
import org.jeecg.modules.online.cgform.consts.ExtendJsonKey;
import org.jeecg.modules.online.cgform.utils.CgformUtil;

/* renamed from: org.jeecg.common.util.a.a.f */
/* loaded from: hibernate-re-3.7.1-RC.jar:org/jeecg/common/util/a/a/f.class */
@Data
public class PopupProperty extends CommonProperty {

    /* renamed from: m */
    private static final long f22m = -3200493311633999539L;

    /* renamed from: n f23n*/
    private String code;

    /* renamed from: o f24o*/
    private String destFields;

    /* renamed from: p f25p*/
    private String orgFields;

    /* renamed from: q f26q*/
    private Boolean popupMulti;


    public PopupProperty() {
    }

    public PopupProperty(String str, String str2, String str3, String str4, String str5) {
        this.view = CgformUtil.f241M;
        this.type = "string";
        this.key = str;
        this.title = str2;
        this.code = str3;
        this.destFields = str4;
        this.orgFields = str5;
        this.popupMulti = true;
    }

    @Override // org.jeecg.common.util.p000a.CommonProperty
    public Map<String, Object> getPropertyJson() {
        HashMap hashMap = new HashMap(5);
        hashMap.put("key", getKey());
        JSONObject commonJson = getCommonJson();
        if (this.code != null) {
            commonJson.put("code", this.code);
        }
        if (this.destFields != null) {
            commonJson.put("destFields", this.destFields);
        }
        if (this.orgFields != null) {
            commonJson.put("orgFields", this.orgFields);
        }
        commonJson.put(ExtendJsonKey.f130c, this.popupMulti);
        if (super.getPattern() != null) {
            commonJson.put("pattern", super.getPattern());
        }
        if (super.getErrorInfo() != null) {
            commonJson.put("errorInfo", super.getErrorInfo());
        }
        hashMap.put("prop", commonJson);
        return hashMap;
    }
}
